@Echo off
SetLocal EnableDelayedExpansion

(For /f "usebackq tokens=1 delims=" %%a in ("%~1") do (
	Echo.%%a
	Set "out=%%a"
	Set /a N+=1
	Echo. out=!N!!out:~-4!
)) > URLS.txt